classdef PopulationAwithMutationAndCarriage < PopulationA
    %UNTITLED3 Summary of this class goes here
    %   Detailed explanation goes here
    
    properties
    end
    
    methods
        
        function obj = PopulationAwithMutationAndCarriage(size, IndividualsClass)
            obj = obj@PopulationA(size, IndividualsClass);
            obj.Crosser = SimpleMutationCrosser();
            obj.GenerationChanger = HalfGenerationChanger();
            
        end
        
%         function to_next_generation(obj)
%             obj.generate_random_pattern
%             obj.compute_objectives
%             for k=1:(ceil(obj.size/4))
%                 obj.create_children();
%             end
%             obj.individuals((obj.size-2*ceil(obj.size/4)+1):obj.size) = obj.next_generation;
%             obj.next_generation = [];
%             obj.sorted = false; %TODO: refactor - should not be need to remember to set this to false
%         end
    
    end
    
end

